//
//  ComboViewCell.m
//  Project two framework
//
//  Created by rimi on 16/7/24.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ComboViewCell.h"
#import "ComboViewFlowLayout.h"

@interface ComboViewCell ()

@end



@implementation ComboViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        _imageview = [[UIImageView alloc]initWithFrame:self.bounds];
        _imageview.image = [UIImage imageNamed:@"prepare_01.png"];
        _imageview.userInteractionEnabled = YES;
        [self.contentView addSubview:_imageview];
        
        _label = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, 330, 70)];
        _label.text = @"套餐一";
        _label.textColor = [UIColor whiteColor];
        _label.textAlignment = NSTextAlignmentCenter;
        _label.font = [UIFont boldSystemFontOfSize:18];
//        _label.
        [_imageview addSubview:_label];
//        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(10, 80, 300, 2)];
//        view.backgroundColor = [UIColor blackColor];
//        [_imageview addSubview:view];
        
        _label1 = [[UILabel alloc]initWithFrame:CGRectMake(15, 90, 300, 50)];
        _label1.text = @"推荐以下业务:";
          _label1.textAlignment = NSTextAlignmentCenter;
        _label1.textColor = [UIColor blackColor];
        _label1.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label1];
        UIView *view1 = [[UIView alloc]initWithFrame:CGRectMake(40, 140, 255, 2)];
        view1.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view1];
        
        _label2 = [[UILabel alloc]initWithFrame:CGRectMake(15, 130, 300, 50)];
//        _label2.text = @"1";
          _label2.textAlignment = NSTextAlignmentCenter;
        _label2.textColor = [UIColor blackColor];
        _label2.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label2];
        UIView *view2 = [[UIView alloc]initWithFrame:CGRectMake(40, 180, 255, 2)];
        view2.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view2];
        
        _label3 = [[UILabel alloc]initWithFrame:CGRectMake(15, 180, 300, 50)];
//        _label3.text = @"2";
          _label3.textAlignment = NSTextAlignmentCenter;
        _label3.textColor = [UIColor blackColor];
        _label3.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label3];
        UIView *view3 = [[UIView alloc]initWithFrame:CGRectMake(40, 230, 255, 2)];
        view3.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view3];
        
        
        _label4 = [[UILabel alloc]initWithFrame:CGRectMake(15, 230, 300, 50)];
//        _label4.text = @"3";
        _label4.textAlignment = NSTextAlignmentCenter;
        _label4.textColor = [UIColor blackColor];
        _label4.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label4];
        UIView *view4 = [[UIView alloc]initWithFrame:CGRectMake(40, 280, 255, 2)];
        view4.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view4];
        
        
        _label5 = [[UILabel alloc]initWithFrame:CGRectMake(15, 280, 300, 50)];
//        _label5.text = @"4";
        _label5.textAlignment = NSTextAlignmentCenter;
        _label5.textColor = [UIColor blackColor];
        _label5.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label5];
        UIView *view5 = [[UIView alloc]initWithFrame:CGRectMake(40, 330, 255, 2)];
        view5.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view5];
        
        
        
        _label6 = [[UILabel alloc]initWithFrame:CGRectMake(15, 330, 300, 50)];
//        _label6.text = @"5";
        _label6.textAlignment = NSTextAlignmentCenter;
        _label6.textColor = [UIColor blackColor];
        _label6.font = [UIFont boldSystemFontOfSize:18];
        [_imageview addSubview:_label6];
        UIView *view6 = [[UIView alloc]initWithFrame:CGRectMake(40, 380, 255, 2)];
        view6.backgroundColor = [UIColor blackColor];
        [_imageview addSubview:view6];
        
        
        _detailsBtn = [[UIButton alloc]initWithFrame:CGRectMake(85, 410, 155, 70)];
        [_detailsBtn setImage:[UIImage imageNamed:@"选中_23.png"] forState:UIControlStateNormal];
        [_imageview addSubview:_detailsBtn];
        
        
        
        
    }

    return self;

}




@end
